package cn.hzu.bean;

public class course {
    private int id;
    private String name;
    private String teacher;
    private String img_src;
    private String intro;
    public course(){}
    public course(int id, String name, String teacher, String img_src,String intro) {
        this.id = id;
        this.name = name;
        this.teacher = teacher;
        this.img_src = img_src;
        this.intro=intro;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getTeacher() {
        return teacher;
    }

    public String getImg_src() {
        return img_src;
    }
    public String getIntro() {
        return intro;
    }
    public void setId(int id) {
        this.id = id;
    }
    public void setName(String name){this.name=name;}
    public void setTeacher(String teacher){this.teacher=teacher;}
    public void setImg_src(String img_src){this.img_src=img_src;}
    public void setIntro(String intro){this.intro=intro;}

    @Override
    public String toString() {
        return "course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", teacher='" + teacher + '\'' +
                ", img_src='" + img_src + '\'' +
                ", intro='" + intro + '\'' +
                '}';
    }
}
